<script type="text/javascript">
    $(document).ready(function() {
        var arr = <?php echo $this->list?>;
        var str = "";
        
        arr.forEach(function(entry){
            str += '<li>'+entry.Field+', Type: '+entry.Type+'</li>';
        });
        
        $('#list').append(str);
    });
</script>


<div class="container">
    <h1>View category: <?php echo $this->table['name']; ?></h1>
    
    <ul id="list">
        
    </ul>
    
    <p>
        <a href="<?php echo URL; ?>category">Back</a> |
        <a href="<?php echo URL; ?>category/edit/<?php echo $this->table['id']; ?>">Edit</a> | 
        <a href="<?php echo URL; ?>category/delete/<?php echo $this->table['id']; ?>">Delete</a>
    </p>
</div>
